← Back to issue list

Snapcraft should complain multiple `after` properties in a single part

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1826753
Type
issue
State
open
Author
~brlin
Labels
Created
2019-04-28 17:41:17.394484+00:00
Updated
2019-04-28 17:41:17.394484+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

I stuck on debugging the missing patch files in the following part definition ```yaml parts: picard: after: - patching source: https://github.com/metabrainz/picard.git source-depth: 100 source-tag: release-2.1.3 plugin: x-python override-build: | git apply --verbose "${SNAPCRAFT_STAGE}"/patching/localedir.patch snapcraftctl build after: [desktop-qt5] # Code patching to fix another part, when it cannot be solved by other means patching: source: patching plugin: dump organize: '*': patching/ prime: - -* ``` Which I (veeeery) later recognize that it is the `after: [desktop-qt5]` line that cause the problem, and has the effect of Snapcraft no longer consider the `patching` part os the `picard` part's dependency. I suggest that Snapcraft bails out prematurely if multiple `after` properties are defined in a single part.

Evaluation history

No evaluation history available.